<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>history</title>
</head>
<body>
页面1
<a href="3.history-2.html">下一页</a>
<button id="btnNext">按钮下一页</button>
</body>
<script>
    var btnNext = document.getElementById('btnNext');

    btnNext.onclick = function () {
        history.forward();
    }

</script>
</html>